home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / mus / misc / MPEG_S_LAMEppc.lha / mpeg_s_LAME3.87 / README.B32 < prev    next >
Text File  |  1980-08-21  |  3KB  |  72 lines

  1.  
  2. Compiling LAME with Borland C++
  3. ===============================
  4.  
  5. by Magnus Holmgren <lear@algonet.se>
  6.  
  7. (LAME's homepage is http://www.sulaco.org/mp3, and LAME is distributed
  8. under the LGPL. More information is in the README file)
  9.  
  10. Compiling
  11. ---------
  12.  
  13. This document assumes you've downloaded the free Borland C++ compiler, 
  14. installed it, and included the appropriate bin folder to the command search 
  15. path. No other software is required - except for the LAME sources then. 
  16.  
  17. Once the compiler is installed, there's not much you need to do. Just CD to 
  18. the lame folder (where you found this file) and type the following:
  19.  
  20.   make -fmakefile.b32
  21.  
  22. Note that during the compilation several warning messages will be displayed. 
  23. This is normal.
  24.  
  25. Speed
  26. -----
  27.  
  28. The Lame you get is no speed deamon, most likely due to missing code 
  29. optimization in the free version. Compiling without optimization makes no 
  30. noticable difference, speed-wise. As a comparison, using "moderate" 
  31. optimizations (-O2) with DJGPP makes Lame more than twice as fast as without 
  32. optimizations. So if you are concerned with speed, DJGPP may be a better 
  33. choice. However, it isn't as easy to compile a DLL with it - or so I've 
  34. read.
  35.  
  36. Defining MMX_choose_table doesn't make any noticable difference, though some 
  37. un-documented defines can speed it up by some 10-15 percent (though it might 
  38. affect quality; I haven't tested that).
  39.  
  40. Other customizations
  41. --------------------
  42.  
  43. Compiling libsndfile is fairly easy to do (see below for some makefile notes 
  44. though), but I won't go into how to do that here. 
  45.  
  46. I haven't tried to make all possible flavors of lame with the include 
  47. makefile. You may need to tweak a few things to get it working.
  48.  
  49. Makefile notes
  50. --------------
  51.  
  52. * Having a "-" in a file name is a bad idea. tlib takes that as something 
  53. should be removed from the library. Having a "/" in a path - used as 
  54. argument to tlib - is also a bad idea, since that is interpreted as the 
  55. start of an argument - even if it isn't preceeded by whitespace. Because of 
  56. this, rename quantize-pvt.c to quantize_pvt.c, if needed.
  57.  
  58. * If compilation targets include folders (e.g., "foo/bar.obj"), make sure "-
  59. o" is the first argument to bcc32, or the object file goes to the wrong 
  60. folder.
  61.  
  62. * To use nasm, change any "segment_code" to "segment code class=code use32" 
  63. and "segment_data" to "segment data class=data use32" in any .nas files you 
  64. want to assemble. Otherwise the linker won't find the function entry point.
  65.  
  66. * To compile the DLL, make sure BladeMP3EncDLL.c includes "machine.h" before 
  67. it includes "BladeMP3EncDLL.h". Note that I haven't actually tested the DLL. 
  68. All I know is that it compiles.
  69.  
  70. * The cmp utility I use for "make test" is a simple home-grown thing.
  71.  
  72.